package com.lihan.GetSeatInLib.Tools;

import com.lihan.GetSeatInLib.Domain.User;
import com.lihan.GetSeatInLib.Domain.Enums.CredtRank;

public class BeanUtils {
	
	public static User BlankUser(	String UserName,
									String Password,
									String PhoneNumber,
									String Email,
									String StudentID,
									String sex) {
		User user = new User();
		user.setUserName(UserName);
		user.setPassword(Password);
		user.setPhoneNumber(PhoneNumber);
		user.setEmail(Email);
		user.setGrade(1);
		user.setRole("student");
		user.setRank(CredtRank.Common);
		if(sex.equals("男"))
			user.setSex(true);
		else
			user.setSex(false);
		user.setStudentID(StudentID);
		user.setIconPath("default null");
		return user;
		
	}

}
